<!DOCTYPE html>
<html>
<head>
    
<!-- Google Analytics -->
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-104674648-1', 'auto');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<!-- End Google Analytics -->


    

    
<!-- Baidu Tongji -->
<script>var _hmt = _hmt || []</script>
<script async src="//hm.baidu.com/hm.js?d230cbd4c1f4abd065bc1ca0e61663da"></script>
<!-- End Baidu Tongji -->




    <meta charset="utf-8">
    
    <meta name="google-site-verification" content="x0NhT11Wdmfn9lsdbcQQOIhQHQKeNWATVfTj5rYZWXo">
    
    
    
    
    <title>开始学习stm32 | Zhuhao&#39;s Blog | I am the captain of my ship and the master of my fate.</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <meta name="theme-color" content="#3F51B5">
    
    
    <meta name="keywords" content="入门,stm32">
    <meta name="description" content="说说我的教材吧 我使用的是原子的stm32的书， 手上暂时没有其他的书了，就只能将就着用这本了，听说口碑还是不错的。">
<meta name="keywords" content="入门,stm32">
<meta property="og:type" content="article">
<meta property="og:title" content="开始学习stm32">
<meta property="og:url" content="http://greedyhao.cc/2017/08/10/工作-stm32-2017-08-10-开始学习stm32/index.html">
<meta property="og:site_name" content="Zhuhao&#39;s Blog">
<meta property="og:description" content="说说我的教材吧 我使用的是原子的stm32的书， 手上暂时没有其他的书了，就只能将就着用这本了，听说口碑还是不错的。">
<meta property="og:locale" content="zh-CN">
<meta property="og:image" content="http://upload-images.jianshu.io/upload_images/3611513-f561c8b5548f8eba.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240">
<meta property="og:image" content="http://oqcum4nqg.bkt.clouddn.com/FlyMcu.png">
<meta property="og:image" content="http://oqcum4nqg.bkt.clouddn.com/MDK5.png">
<meta property="og:image" content="http://oqcum4nqg.bkt.clouddn.com/STM32/MDK%E9%85%8D%E7%BD%AE2.png">
<meta property="og:image" content="http://oqcum4nqg.bkt.clouddn.com/STM32/MDK%E9%85%8D%E7%BD%AE3.png">
<meta property="og:updated_time" content="2017-08-14T13:27:13.000Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="开始学习stm32">
<meta name="twitter:description" content="说说我的教材吧 我使用的是原子的stm32的书， 手上暂时没有其他的书了，就只能将就着用这本了，听说口碑还是不错的。">
<meta name="twitter:image" content="http://upload-images.jianshu.io/upload_images/3611513-f561c8b5548f8eba.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240">
    
        <link rel="alternate" type="application/atom+xml" title="Zhuhao&#39;s Blog" href="/atom.xml">
    
    <link rel="shortcut icon" href="/favicon.png">
    <link rel="stylesheet" href="//unpkg.com/hexo-theme-material-indigo@latest/css/style.css">
    <script>window.lazyScripts=[]</script>

    <!-- custom head -->
    

</head>

<body>
    <div id="loading" class="active"></div>

    <aside id="menu" class="hide" >
  <div class="inner flex-row-vertical">
    <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menu-off">
        <i class="icon icon-lg icon-close"></i>
    </a>
    <div class="brand-wrap" style="background-image:url(/img/brand.jpg)">
      <div class="brand">
        <a href="/" class="avatar waves-effect waves-circle waves-light">
          <img src="/img/portrait.jpg">
        </a>
        <hgroup class="introduce">
          <h5 class="nickname">Greedyhao</h5>
          <a href="mailto:hao_kr@163.com" title="hao_kr@163.com" class="mail">hao_kr@163.com</a>
        </hgroup>
      </div>
    </div>
    <div class="scroll-wrap flex-col">
      <ul class="nav">
        
            <li class="waves-block waves-effect">
              <a href="/"  >
                <i class="icon icon-lg icon-home"></i>
                主页
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/archives"  >
                <i class="icon icon-lg icon-archives"></i>
                Archives
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/tags"  >
                <i class="icon icon-lg icon-tags"></i>
                Tags
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="/categories"  >
                <i class="icon icon-lg icon-th-list"></i>
                Categories
              </a>
            </li>
        
            <li class="waves-block waves-effect">
              <a href="https://github.com/greedyhao" target="_blank" >
                <i class="icon icon-lg icon-github"></i>
                Github
              </a>
            </li>
        
      </ul>
    </div>
  </div>
</aside>

    <main id="main">
        <header class="top-header" id="header">
    <div class="flex-row">
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light on" id="menu-toggle">
          <i class="icon icon-lg icon-navicon"></i>
        </a>
        <div class="flex-col header-title ellipsis">开始学习stm32</div>
        
        <div class="search-wrap" id="search-wrap">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="back">
                <i class="icon icon-lg icon-chevron-left"></i>
            </a>
            <input type="text" id="key" class="search-input" autocomplete="off" placeholder="输入感兴趣的关键字">
            <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="search">
                <i class="icon icon-lg icon-search"></i>
            </a>
        </div>
        
        
        <a href="javascript:;" class="header-icon waves-effect waves-circle waves-light" id="menuShare">
            <i class="icon icon-lg icon-share-alt"></i>
        </a>
        
    </div>
</header>
<header class="content-header post-header">

    <div class="container fade-scale">
        <h1 class="title">开始学习stm32</h1>
        <h5 class="subtitle">
            
                <time datetime="2017-08-10T10:00:00.000Z" itemprop="datePublished" class="page-time">
  2017-08-10
</time>


	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/工作/">工作</a></li></ul>

            
        </h5>
    </div>

    


</header>


<div class="container body-wrap">
    
    <aside class="post-widget">
        <nav class="post-toc-wrap post-toc-shrink" id="post-toc">
            <h4>TOC</h4>
            <ol class="post-toc"><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#说说我的教材吧"><span class="post-toc-number">1.</span> <span class="post-toc-text">说说我的教材吧</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#配置开发环境"><span class="post-toc-number">2.</span> <span class="post-toc-text">配置开发环境</span></a></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#初始化mdk5"><span class="post-toc-number">3.</span> <span class="post-toc-text">初始化MDK5</span></a><ol class="post-toc-child"><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#下载stm32固件库"><span class="post-toc-number">3.1.</span> <span class="post-toc-text">下载STM32固件库</span></a></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#建立工程并复制固件库到本地文件夹"><span class="post-toc-number">3.2.</span> <span class="post-toc-text">建立工程并复制固件库到本地文件夹</span></a></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#配置头文件目录"><span class="post-toc-number">3.3.</span> <span class="post-toc-text">配置头文件目录</span></a></li><li class="post-toc-item post-toc-level-3"><a class="post-toc-link" href="#仿真的配置问题"><span class="post-toc-number">3.4.</span> <span class="post-toc-text">仿真的配置问题</span></a></li></ol></li><li class="post-toc-item post-toc-level-2"><a class="post-toc-link" href="#get到的新东西"><span class="post-toc-number">4.</span> <span class="post-toc-text">get到的新东西</span></a></li></ol>
        </nav>
    </aside>


<article id="post-工作-stm32-2017-08-10-开始学习stm32"
  class="post-article article-type-post fade" itemprop="blogPost">

    <div class="post-card">
        <h1 class="post-card-title">开始学习stm32</h1>
        <div class="post-meta">
            <time class="post-time" title="2017-08-10 18:00:00" datetime="2017-08-10T10:00:00.000Z"  itemprop="datePublished">2017-08-10</time>

            
	<ul class="article-category-list"><li class="article-category-list-item"><a class="article-category-list-link" href="/categories/工作/">工作</a></li></ul>



            
<span id="busuanzi_container_page_pv" title="文章总阅读量" style='display:none'>
    <i class="icon icon-eye icon-pr"></i><span id="busuanzi_value_page_pv"></span>
</span>


        </div>
        <div class="post-content" id="post-content" itemprop="postContent">
            <h2 id="说说我的教材吧">说说我的教材吧</h2>
<p>我使用的是原子的stm32的书， 手上暂时没有其他的书了，就只能将就着用这本了，听说口碑还是不错的。</p>
<a id="more"></a>
<figure class="image-bubble">
                <div class="img-lightbox">
                    <div class="overlay"></div>
                    <img src="http://upload-images.jianshu.io/upload_images/3611513-f561c8b5548f8eba.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" alt="" title="">
                </div>
                <div class="image-caption"></div>
            </figure>
<h2 id="配置开发环境">配置开发环境</h2>
<figure class="image-bubble">
                <div class="img-lightbox">
                    <div class="overlay"></div>
                    <img src="http://oqcum4nqg.bkt.clouddn.com/FlyMcu.png" alt="" title="">
                </div>
                <div class="image-caption"></div>
            </figure>
<figure class="image-bubble">
                <div class="img-lightbox">
                    <div class="overlay"></div>
                    <img src="http://oqcum4nqg.bkt.clouddn.com/MDK5.png" alt="" title="">
                </div>
                <div class="image-caption"></div>
            </figure>
<p>这两个是必要的开发程序,网上随便一搜一大把教程。MDK5是可以安装C51的库进行51单片机的开发的，MDK5还有实时语法检测，用起来很爽。</p>
<p>除了这两个软件以外，还要进行stm32的配置（应该叫做 <strong>新建基于固件库的MDK5工程模板</strong>，网上也是一堆教程。</p>
<h2 id="初始化mdk5">初始化MDK5</h2>
<h3 id="下载stm32固件库">下载STM32固件库</h3>
<p>我用的是<a href="http://download.csdn.net/detail/juhou/9854770" target="_blank">STM32F10x_StdPeriph_Lib_V3.5.0</a></p>
<p>STM32跟51单片机其实本质上并没有什么差别，都是一样的冯罗伊曼架构，只不过就是寄存器多了一点而已； 所以要直接对STM32寄存器操作就变得不容易了，因为你可能记不完全，这时候固件库的重要性就体现出来了。 这个库给我们提供的库函数可以让我们轻松的开发STM32，而不用刻意去记忆寄存器。</p>
<h3 id="建立工程并复制固件库到本地文件夹">建立工程并复制固件库到本地文件夹</h3>
<ul>
<li>先建立一个文件夹，新建<strong>USER</strong>文件夹，将<em>工程文件</em>保存在其中</li>
<li>再建立与<strong>USER</strong>同级文件夹<strong>CORE</strong>,<strong>OBJ</strong>,<strong>STM32F10X_FWLib</strong></li>
<li>将<em>STM32F10x_StdPeriph_Lib_V3.5.032F10x_StdPeriph_Driver</em>下的<em>inc</em>, <em>src</em>这两个目录拷贝去<strong>STM32F10X_FWLib</strong></li>
<li>将*STM32F10x_StdPeriph_Lib_V3.5.03下的<strong>core_cm3.c</strong>和<strong>core_cm3.h</strong>拷贝去<strong>CORE</strong></li>
<li>在*STM32F10x_StdPeriph_Lib_V3.5.0332F10x\startup下，有8个启动文件，选择对应的启动文件， 拷贝到<strong>CORE</strong>中。 startup_stm32f10x_cl.s适用于小容量，startup_stm32f10x_md.s适用于中等容量，startup_stm32f10x_hd.s适用于大容量。小容量：Flash≤32KB， 中等容量：64KB≤Flash≤128KB，大容量：256KB≤Flash</li>
<li>将<em>STM32F10x_StdPeriph_Lib_V3.5.0332F10x</em>下的3个文件<strong>stm32f10x.h</strong>，<strong>system_stm32f10x.c</strong>， <strong>system_stm32f10x.h</strong>拷贝到<strong>USER</strong>中</li>
<li>将<em>STM32F10x_StdPeriph_Lib_V3.5.032F10x_StdPeriph_Template</em>中的4个文件<strong>main.c</strong>，<strong>stm32f10x_conf.h</strong>，<strong>stm32f10x_it.c</strong>， <strong>stm32f10x_it.h</strong>拷贝到<strong>USER</strong>中 ### 将固件库添加进工程中</li>
<li>在工程目录下新建4个文件夹 <strong>USER</strong>, <em>CORE</em>, <em>OBJ</em>, <em>FWLib</em></li>
<li>将本地文件夹中对应文件夹的.c文件添加进工程中</li>
</ul>
<h3 id="配置头文件目录">配置头文件目录</h3>
<p>如图所示，添加你的头文件的目录</p>
<figure class="image-bubble">
                <div class="img-lightbox">
                    <div class="overlay"></div>
                    <img src="http://oqcum4nqg.bkt.clouddn.com/STM32/MDK%E9%85%8D%E7%BD%AE2.png" alt="" title="">
                </div>
                <div class="image-caption"></div>
            </figure>
<h3 id="仿真的配置问题">仿真的配置问题</h3>
<p>如图所示</p>
<figure class="image-bubble">
                <div class="img-lightbox">
                    <div class="overlay"></div>
                    <img src="http://oqcum4nqg.bkt.clouddn.com/STM32/MDK%E9%85%8D%E7%BD%AE3.png" alt="" title="">
                </div>
                <div class="image-caption"></div>
            </figure>
<h2 id="get到的新东西">get到的新东西</h2>
<ul>
<li>stm32居然有多个时钟源，这是我之前不知道的，多个时钟源的原因是为了节省资源，时钟越快功耗越大，同时抗电磁干扰能力也会越弱，而有些外设需要的时钟并不需要太快，所以stm32通过分频，不同的5个时钟源给不同的外设。</li>
<li>结构体的使用。之前学习51单片机时，其实很多c语言的知识都没有用上的，一直不明白那些知识的用处。在我看stm32的固件库的时候，看见了很多函数的参数都是用结构体来传递的，这样的好处是参数的个数比较容易更改，只需要更改结构体中的参数个数就可以了。</li>
<li>定义自己的类型。这也是我在看stm32的固件库才了解到的，虽然我很久以前就知道要定义自己的数据类型，但一直都很少用，因为作用不大，在stm32固件库中看见了大量的使用，固件库中所有的数据类型都是使用自己的定义，我觉得这样的好处是可以增加程序的易读性和兼容性。 <figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><span class="line">/*stm32f10x.h*/</span><br><span class="line">...</span><br><span class="line">typedef struct</span><br><span class="line">&#123;</span><br><span class="line">  __IO uint16_t CR1;</span><br><span class="line">  uint16_t  RESERVED0;</span><br><span class="line">  __IO uint16_t CR2;</span><br><span class="line">  uint16_t  RESERVED1;</span><br><span class="line">...</span><br><span class="line">&#125; TIM_TypeDef;</span><br><span class="line">...</span><br><span class="line">/*stm32f10x_tim.h*/</span><br><span class="line">...</span><br><span class="line">void TIM_DeInit(TIM_TypeDef* TIMx);</span><br><span class="line">...</span><br></pre></td></tr></table></figure></li>
</ul>
<p>这是固件库中的一段对结构体的用法和定义自己的数据类型。</p>

        </div>

        <blockquote class="post-copyright">
    
    <div class="content">
        
<span class="post-time">
    最后更新时间：<time datetime="2017-08-14T13:27:13.000Z" itemprop="dateUpdated">2017-08-14 21:27:13</time>
</span><br>


        
        下方的留言框比较调皮，有时候故意不出来，而且还是滚刀肉，实在拿他没办法，所以如果等得不爽可以直接去<a href="https://github.com/greedyhao/greedyhao.github.io/issues" target="_blank" rel="external">issues</a>给我留言
        
    </div>
    
    <footer>
        <a href="http://greedyhao.cc">
            <img src="/img/portrait.jpg" alt="Greedyhao">
            Greedyhao
        </a>
    </footer>
</blockquote>

        
<div class="page-reward">
    <a id="rewardBtn" href="javascript:;" class="page-reward-btn waves-effect waves-circle waves-light">赏</a>
</div>



        <div class="post-footer">
            
	<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/stm32/">stm32</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/入门/">入门</a></li></ul>


            
<div class="page-share-wrap">
    

<div class="page-share" id="pageShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://greedyhao.cc/2017/08/10/工作-stm32-2017-08-10-开始学习stm32/&title=《开始学习stm32》 — Zhuhao's Blog&pic=http://greedyhao.cc/img/portrait.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://greedyhao.cc/2017/08/10/工作-stm32-2017-08-10-开始学习stm32/&title=《开始学习stm32》 — Zhuhao's Blog&source=说说我的教材吧
我使用的是原子的stm32的书， 手上暂时没有其他的书了，就只能将就着用这本了，听说口碑还是不错的。" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://greedyhao.cc/2017/08/10/工作-stm32-2017-08-10-开始学习stm32/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《开始学习stm32》 — Zhuhao's Blog&url=http://greedyhao.cc/2017/08/10/工作-stm32-2017-08-10-开始学习stm32/&via=http://greedyhao.cc" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://greedyhao.cc/2017/08/10/工作-stm32-2017-08-10-开始学习stm32/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>



    <a href="javascript:;" id="shareFab" class="page-share-fab waves-effect waves-circle">
        <i class="icon icon-share-alt icon-lg"></i>
    </a>
</div>



        </div>
    </div>

    
<nav class="post-nav flex-row flex-justify-between">
  
    <div class="waves-block waves-effect prev">
      <a href="/2017/08/10/工作-stm32-2017-08-10-GPIO-EXTI/" id="post-prev" class="post-nav-link">
        <div class="tips"><i class="icon icon-angle-left icon-lg icon-pr"></i> Prev</div>
        <h4 class="title">学习外部中断</h4>
      </a>
    </div>
  

  
    <div class="waves-block waves-effect next">
      <a href="/2017/08/10/工作-jekyll-2017-08-10-简易版搭建博客教程/" id="post-next" class="post-nav-link">
        <div class="tips">Next <i class="icon icon-angle-right icon-lg icon-pl"></i></div>
        <h4 class="title">利用github page搭建博客简易教程</h4>
      </a>
    </div>
  
</nav>



    


<section class="comments" id="comments">
    <div id="disqus_thread"></div>
    <script>
    var disqus_shortname = 'greedyhao';
    lazyScripts.push('//' + disqus_shortname + '.disqus.com/embed.js')
    </script>
    <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
</section>
















</article>

<div id="reward" class="page-modal reward-lay">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <h3 class="reward-title">
        <i class="icon icon-quote-left"></i>
        谢谢打赏
        <i class="icon icon-quote-right"></i>
    </h3>
    <div class="reward-content">
        
        <div class="reward-code">
            <img id="rewardCode" src="/img/wechat.jpg" alt="打赏二维码">
        </div>
        
        <label class="reward-toggle">
            <input id="rewardToggle" type="checkbox" class="reward-toggle-check"
                data-wechat="/img/wechat.jpg" data-alipay="/img/alipay.jpg">
            <div class="reward-toggle-ctrol">
                <span class="reward-toggle-item wechat">微信</span>
                <span class="reward-toggle-label"></span>
                <span class="reward-toggle-item alipay">支付宝</span>
            </div>
        </label>
        
    </div>
</div>



</div>

        <footer class="footer">
    <div class="top">
        
<p>
    <span id="busuanzi_container_site_uv" style='display:none'>
        站点总访客数：<span id="busuanzi_value_site_uv"></span>
    </span>
    <span id="busuanzi_container_site_pv" style='display:none'>
        站点总访问量：<span id="busuanzi_value_site_pv"></span>
    </span>
</p>


        <p>
            
                <span><a href="/atom.xml" target="_blank" class="rss" title="rss"><i class="icon icon-lg icon-rss"></i></a></span>
            
            <span>博客内容遵循 <a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">知识共享 署名 - 非商业性 - 相同方式共享 4.0 国际协议</a></span>
        </p>
    </div>
    <div class="bottom">
        <p><span>Greedyhao &copy; 2017 - 2018</span>
            <span>
                
                Power by <a href="http://hexo.io/" target="_blank">Hexo</a> Theme <a href="https://github.com/yscoder/hexo-theme-indigo" target="_blank">indigo</a>
            </span>
        </p>
    </div>
</footer>

    </main>
    <div class="mask" id="mask"></div>
<a href="javascript:;" id="gotop" class="waves-effect waves-circle waves-light"><span class="icon icon-lg icon-chevron-up"></span></a>



<div class="global-share" id="globalShare">
    <ul class="reset share-icons">
      <li>
        <a class="weibo share-sns" target="_blank" href="http://service.weibo.com/share/share.php?url=http://greedyhao.cc/2017/08/10/工作-stm32-2017-08-10-开始学习stm32/&title=《开始学习stm32》 — Zhuhao's Blog&pic=http://greedyhao.cc/img/portrait.jpg" data-title="微博">
          <i class="icon icon-weibo"></i>
        </a>
      </li>
      <li>
        <a class="weixin share-sns wxFab" href="javascript:;" data-title="微信">
          <i class="icon icon-weixin"></i>
        </a>
      </li>
      <li>
        <a class="qq share-sns" target="_blank" href="http://connect.qq.com/widget/shareqq/index.html?url=http://greedyhao.cc/2017/08/10/工作-stm32-2017-08-10-开始学习stm32/&title=《开始学习stm32》 — Zhuhao's Blog&source=说说我的教材吧
我使用的是原子的stm32的书， 手上暂时没有其他的书了，就只能将就着用这本了，听说口碑还是不错的。" data-title=" QQ">
          <i class="icon icon-qq"></i>
        </a>
      </li>
      <li>
        <a class="facebook share-sns" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http://greedyhao.cc/2017/08/10/工作-stm32-2017-08-10-开始学习stm32/" data-title=" Facebook">
          <i class="icon icon-facebook"></i>
        </a>
      </li>
      <li>
        <a class="twitter share-sns" target="_blank" href="https://twitter.com/intent/tweet?text=《开始学习stm32》 — Zhuhao's Blog&url=http://greedyhao.cc/2017/08/10/工作-stm32-2017-08-10-开始学习stm32/&via=http://greedyhao.cc" data-title=" Twitter">
          <i class="icon icon-twitter"></i>
        </a>
      </li>
      <li>
        <a class="google share-sns" target="_blank" href="https://plus.google.com/share?url=http://greedyhao.cc/2017/08/10/工作-stm32-2017-08-10-开始学习stm32/" data-title=" Google+">
          <i class="icon icon-google-plus"></i>
        </a>
      </li>
    </ul>
 </div>


<div class="page-modal wx-share" id="wxShare">
    <a class="close" href="javascript:;"><i class="icon icon-close"></i></a>
    <p>扫一扫，分享到微信</p>
    <img src="" alt="微信分享二维码">
</div>




    <script src="//cdn.bootcss.com/node-waves/0.7.4/waves.min.js"></script>
<script>
var BLOG = { ROOT: '/', SHARE: true, REWARD: true };


</script>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/main.min.js"></script>


<div class="search-panel" id="search-panel">
    <ul class="search-result" id="search-result"></ul>
</div>
<template id="search-tpl">
<li class="item">
    <a href="{path}" class="waves-block waves-effect">
        <div class="title ellipsis" title="{title}">{title}</div>
        <div class="flex-row flex-middle">
            <div class="tags ellipsis">
                {tags}
            </div>
            <time class="flex-col time">{date}</time>
        </div>
    </a>
</li>
</template>

<script src="//unpkg.com/hexo-theme-material-indigo@latest/js/search.min.js" async></script>



<!-- mathjax config similar to math.stackexchange -->

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
    tex2jax: {
        inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
        processEscapes: true,
        skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
    }
});

MathJax.Hub.Queue(function() {
    var all = MathJax.Hub.getAllJax(), i;
    for(i=0; i < all.length; i += 1) {
        all[i].SourceElement().parentNode.className += ' has-jax';
    }
});
</script>

<script async src="//cdn.bootcss.com/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML" async></script>




<script async src="//dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js"></script>



<script>
(function() {
    var OriginTitile = document.title, titleTime;
    document.addEventListener('visibilitychange', function() {
        if (document.hidden) {
            document.title = '再见';
            clearTimeout(titleTime);
        } else {
            document.title = '你好';
            titleTime = setTimeout(function() {
                document.title = OriginTitile;
            },2000);
        }
    });
})();
</script>



</body>
</html>
